package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.SecurityUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description 生产任务日志表
 * @Version 1.0.0
 * @Date 2024/10/12 11:33
 * @Author wux
 */
@Data
@TableName("t_prod_task_log")
@ApiModel(value = "生产任务日志表")
public class TProdTaskLog {
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品id")
    private Long taskId;

    @ApiModelProperty(value = "操作类型 1增产 2减产")
    private Integer operationType;

    @ApiModelProperty(value = "调整数量")
    private Integer quantity;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "调整前计划产量")
    private Integer beforePlanNum;

}
